package com.chen.internalcommon.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @author chenLiuPing
 **/

public class OrderConstants {
    /**
     * 0：订单无效
     */
    public static final int ORDER_INVALID = 0;

    /**
     * 1：订单开始
     */
    public static final int ORDER_START = 1;

    /**
     * 2：司机接单
     */
    public static final int DRIVER_RECEIVE_ORDER = 2;

    /**
     * 3：去接乘客
     */
    public static final int DRIVER_TO_PICK_UP_PASSENGER = 3;

    /**
     * 4：司机到达乘客起点
     */
    public static final int DRIVER_ARRIVED_DEPARTURE = 4;

    /**
     * 5: 乘客上车，司机开始行程
     */
    public static final int PICK_UP_PASSENGER = 5;

    /**
     * 6：到达目的地，行程结束，未支付
     */
    public static final int PASSENGER_GETOFF = 6;

    /**
     * 7: 发起收款
     */
    public static final int TO_START_PAY = 7;

    /**
     *  8: 支付完成
     */
    public static final int SUCCESS_PAY = 8;

    /**
     * ’9.订单取消
     */
    public static final int ORDER_CANCEL = 9;

    public static List<Integer> getPassengerOrderGoingOn() {
        return Arrays.asList(ORDER_START, DRIVER_RECEIVE_ORDER, DRIVER_TO_PICK_UP_PASSENGER,
                DRIVER_ARRIVED_DEPARTURE, PICK_UP_PASSENGER, PASSENGER_GETOFF, TO_START_PAY);
    }

    public static List<Integer> getDriverOrderGoingOn() {
        return Arrays.asList(DRIVER_RECEIVE_ORDER, DRIVER_TO_PICK_UP_PASSENGER, DRIVER_ARRIVED_DEPARTURE, PICK_UP_PASSENGER);
    }
}
